import request from '@/utils/request';

////api/product/list列表
export function productList(data) {
  return request({
    url: '/api/product/list',
    method: 'post',
    data
  })
}
// api/product/del 删除
export function productDel(data) {
  return request({
    url: '/api/product/del',
    method: 'post',
    data
  })
}
// /api/product/detail详情
export function openDetails(data) {
  return request({
    url: '/api/product/detail',
    method: 'post',
    data
  })
}
//api/product/enable  商品启用或禁用
export function productEnable(data) {
  return request({
    url: '/api/product/enable',
    method: 'post',
    data
  })
}

///api/product/edit编辑
export function productEdit(data) {
  return request({
    url: '/api/product/edit',
    method: 'post',
    data
  })
}
